package org.springcloud.wisdom.amusement.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springcloud.wisdom.amusement.entity.Admin;
import org.springcloud.wisdom.amusement.entity.Student;

@Mapper
public interface LoginDao extends BaseMapper {
    @Select("select * from admin where aname=#{account} and apassword=#{password}")
    public Admin getAdmin(String account, String password);
    @Select("select * from student where sid=#{account} and adpass=#{password}")
    public Student getStudent(String account, String password);
}
